package com.test;

import io.github.yedaxia.apidocs.Docs;
import io.github.yedaxia.apidocs.DocsConfig;
import springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator;

/**
 * @author LuHuanCheng
 * 类说明：生成api文档
 */
public class ApiDoc {
    public static void main(String[] args) {
        DocsConfig config = new DocsConfig();
        config.setProjectPath("D:\\idea\\project\\practice");
        config.setProjectName("mock");
        config.setApiVersion("V1.0");
        config.setDocsPath("D:\\idea\\project\\practice\\mock");
        config.setAutoGenerate(Boolean.TRUE);
        config.setMvcFramework("spring");
        Docs.buildHtmlDocs(config);
    }
}